package com.example.demo;

import com.example.demo.application.MyApplication;
import javafx.application.Application;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * Spring Boot 应用程序的入口类
 */
@MapperScan("com.example.demo.dao") // 扫描 MyBatis Mapper 接口的包路径
@SpringBootApplication // Spring Boot 应用程序的主配置注解
public class DemoApplication {

    public static void main(String[] args) {

        // 启动 Spring Boot 应用程序
        SpringApplication.run(DemoApplication.class, args);

        // 启动 JavaFX 应用程序
        Application.launch(MyApplication.class, args);
    }
}
